﻿
namespace DDDProject.Aspects.Transactions
{
    /// <summary>
    /// The supported transaction mode for the components.
    /// </summary>
    public enum TransactionMode
    {
        /// <summary>
        /// transaction context will be created if not present 
        /// </summary>
        Requires,
        /// <summary>
        /// a new transaction context will be created 
        /// </summary>
        RequiresNew,
        /// <summary>
        /// transaction context will be created 
        /// managing internally a connection, no 
        /// transaction is opened though
        /// </summary>
        NotSupported,
        /// <summary>
        /// an existing appropriate transaction context 
        /// will be joined if present
        /// </summary>
        Supported,
        /// <summary>
        /// Unspecified...
        /// </summary>
        Unspecified
    }
}
